﻿<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>普通List页面</title>

    <!-- Bootstrap -->
    <link href="/CSS/bootstrap3.3.5/css/bootstrap.css" rel="stylesheet">
    <link href="/JqueryPlug/dtGrid/jquery.dtGrid.css" rel="stylesheet">
    <link href="/CSS/font-awesome-4.3.0/css/font-awesome.min.css" rel="stylesheet">
    <link href="/CSS/Base/Button.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body>
    <div class="container-fluid maindiv" style="margin-top: 20px" id="dvContent">
        <div class="panel panel-default">
            <div class="panel-body">
                <div class="row">
                    <div class="col-xs-4">
                        <a href="#" id="btADD" style="  height: 34px;line-height: 34px;" class="button button-glow button-border button-rounded button-primary"><i class="fa fa-plus"></i>添加</a>

                     
                    </div>
                    <div class="col-xs-2">
                    </div>
                    <div class="col-xs-6 FT_dvbtn text-right">
                        <div class="input-group">
                            <div class="input-group-addon">搜索关键字</div>
                            <input id="tbSearch" class="form-control" type="text" />
                            <span class="input-group-btn">
                                <button class="btn btn-info">查询</button>
                            </span>

                        </div>
                    </div>

                </div>
            </div>


        </div>

        <!-- Default panel contents -->
        <!-- Table -->
        <div id="dtgrid"></div>
        <div id="dtgridTool" class="dt-grid-toolbar-container"></div>
        <input type="hidden" id="tabledata" value="" />
        <input type="hidden" id="hidselID" value="" />
        <input type="hidden" id="hidQueryWhere" value="" />
    </div>



    <script src="/Scripts/jquery-1.11.2.min.js"></script>
    <script src="/Scripts/jquery-migrate-1.1.0.min.js"></script>
    <script src="/CSS/bootstrap3.3.5/js/bootstrap.js"></script>
    <script src="/JqueryPlug/dtGrid/jquery.dtGrid.js"></script>
    <script src="/Scripts/avalon.min.js"></script>
    <script src="/Scripts/SZHLCommon.js"></script>

    <script>
        $(document).ready(function () {
            // var FormCode = ComFunJS.getQueryString("FormCode");
            var FormCode = "ZHBG_QYGG";
            var jspath = "/View/ListJS/" + FormCode + ".js";
            $.getJSON('/API/SZHLAPI.ashx?Action=GETLISTDATA', { "P1": FormCode }, function (resultData) {
                if (resultData.ErrorMsg == "") {
                    var Data = resultData.Result;
                    $.getScript(jspath, function () {
                        var dtoption = {
                            lang: 'zh-cn',
                            check: true,
                            ajaxLoad: false,
                            exportFileName: '用户列表',
                            datas: Data,
                            columns: option.columns,
                            gridContainer: 'dtgrid',
                            toolbarContainer: 'dtgridTool',
                            pageSize: 10,
                            pageSizeLimit: [10, 20, 50],
                            tools: 'faseQuery',
                            onGridComplete: function (grid) {
                                var log = '<p>表格加载完成。表格编号：' + grid.option.id + '。</p>';
                            }
                        };
                        $.fn.DtGrid.init(dtoption).load();
                    });
                }
            })


            $("#btADD").bind('click', function () {
                parent.ComFunJS.winviewform("/View/Base/CommonAddN.aspx?FormCode=" + FormCode, "添加数据","1000","");
            })

        })

    </script>
</body>



</html>